import random

from bilibili_api import Credential


class CredentialConfig:
    SESSDATA = "c8ec5b95%2C1730183469%2C3ed95%2A52CjBEeSt-nCOhtMz-ZIb4NmhaS4nUkY195WGGBWXdgRgZrnASQQMRHa-8ErQ2ulqx75kSVmFaMGRmcGlVT2puNDhZWGpjRkZGc3hvaU85bk5wMmVocEVoSHdUazRrQkExZGtwZFZMcGF3YVR1dW44cHhBQ3otdUVRVTktQ3NVMG1ZX1ZmQzl6RjlBIIEC"
    BILI_JCT = "5164842710b6e0fdf502f16dcb4a7ccc"
    BUVID3 = "3F9A65F1-2982-4BD2-C6FB-26697CA107EA87690infoc"
    credential1 = Credential(sessdata=SESSDATA, bili_jct=BILI_JCT, buvid3=BUVID3)
    # SESSDATA ="f8798830%2C1727663058%2C93bb6%2A42CjCJR-BCQKl6uXpGlleGmGKDdrBwcxsfFB024W2xAc386ey0nduDI-xuvoC17b7R5pESVjBXRC1GSGJtT0xSUmR0bjIwR2JYdUs4Vm9vS2VTUGpFTk1nVlY4VTRlZGl1T3FhTnJzUzU1aXFPTUlTQlBwVVJGMzJzaC1vQnc0UFFrcHlxYUYyZTN3IIEC"
    # BILI_JCT ="4ab5f2ce9e3f69b4bda8124ca2b2568b"
    # BUVID3 ="D59EF734-37C1-1684-4F6E-C1990165F7AE28911infoc"
    # credential2 = Credential(sessdata=SESSDATA, bili_jct=BILI_JCT, buvid3=BUVID3)

    @classmethod
    def get_credential(cls):
        # 实例化 Credential 类
        # credential = random.choice([cls.credential1, cls.credential2])
        credential = cls.credential1
        return credential
